/*
 * Author: 李波（Edwin Lee)
 * Date: 2024-06-15 17:27:06
 * FilePath: /chat/include/server/user.hpp
 * LastEditTime: 2024-06-21 20:42:02
 * version: 1.0
 * Description: 
 */
#ifndef USER_H
#define USER_H

#include <string>
using namespace std;
class User
{
public:
    User(int id=-1, string name="", string pwd="",string state="offline")
        :id_(id)
        ,name_(name)
        ,password_(pwd)
        ,state_(state)
    {}

    void setId(int id){id_ = id;}
    void setName(string name){name_ = name;}
    void setPwd(string pwd){password_ = pwd;}
    void setState(string state){state_ = state;}

    int getId(){return id_;}
    string getName(){return name_;}
    string getPwd(){return password_;}
    string getState(){return state_;}
protected:
    int id_;
    string name_;
    string password_;
    string state_;
};

#endif